<?php

/**
 * @file
 * Class EventType has characteristics for events in Event class.
 * 
 * Copyright 2011 by UNHM CIS605 project Donate team.
 * This program is part of BBBS and YWCA Donation management system.
 * Donate is free software. It comes with absolutely no warranty.
 * You can redistribute it and/or modify it under the terms of the GNU
 * General Public License as published by the Free Software Foundation
 * (see <http://www.gnu.org/licenses/ for more information).
 * 
 * @version April 14th 2011
 * @author Laura Cassella, Chris Reekie
 */

/**
 * Represents event type data stored in the dbEventType table.
 */
class eventType {

    private $eventTypeID;    // event type auto-increment unique ID, PK
    private $eventName;     // event name as a string - FK of Event class
    private $eventDescription;   // event description as a string

    /**
     * constructor for EventType class.
     */

    function __construct($en, $ed) {
        $this->eventTypeID = null;
        $this->eventName = $en;
        $this->eventDescription = $ed;
    }

    /**
     *  Getters for the EventType class.
     */

    /**
     * @return int eventTypeID auto-generated by the database.
     */
    function getEventTypeID() {
        return $this->eventTypeID;
    }

    /**
     * @return string eventName.
     */
    function getEventName() {
        return $this->eventName;
    }

    /**
     * @return string eventDescription.
     */
    function getEventDescription() {
        return $this->eventDescription;
    }

    /**
     *  Setters for the Event class.
     * eventTypeID cannot be changed. 
     * This field is an auto-generated unique key.
     */

    /**
     * @param string $en.
     */
    function set_eventName($en) {
        $this->eventName = $en;
    }

    /**
     * @param string $ed.
     */
    function set_eventDescription($ed) {
        $this->eventDescription = $ed;
    }

	/**
   * Prints all attributes of this object.
   * @return string $output The attributes listed in a string.
   */
function printAllAttributes()
  {
    $output = sprintf("eventName: %s, eventDescription: %s.", 
                      $this->eventName, $this->eventDescription);
    return $output;
  }
	
}

?>